package cn.edu.dzkd.software.mapper;

import cn.edu.dzkd.software.pojo.Module;
import cn.edu.dzkd.software.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: PDJ
 * Date: 2022/07/07 16:13
 * Description:
 * Version: V1.0
 */
public interface ModuleMapper {
    List<Module> selectModules(@Param("index") int index,
                               @Param("moduleName") String moduleName,
                               @Param("moduleVersion") String moduleVersion,
                               @Param("dangerlevel") String dangerlevel);
    int selectModuleCounts(@Param("moduleName") String moduleName,
                           @Param("moduleVersion") String moduleVersion,
                           @Param("dangerlevel") String dangerlevel );

    void insertModuleJSON(@Param("module") Module module);

    void deleteById(String id);

    void update(Module module);

}
